package com.ima.web.service;

import java.util.List;

import com.ima.web.beans.db.Categories;
import com.ima.web.beans.db.SubCategories;
import com.ima.web.beans.db.Users;
import com.ima.web.beans.form.SubCategoriesForm;

public interface SubCategoriesService {

	List<SubCategories> getByCategory(String category);
	List<SubCategories> getByCategory(Categories cat);
	List<SubCategories> getByCategoriesId(int id);
	List<SubCategories> getByName(String subcategory);
	List<SubCategories> getApprovedBy(String approverUsername);
	List<SubCategories> getApprovedBy(int userId);
	List<SubCategories> getApprovedBy(Users user);
	
	List<SubCategories> getForProcessing();
	SubCategories getById(int id);
	
	List<SubCategories> getApproved();
	
	void insert(SubCategoriesForm formData);
	void insert(SubCategories subCategory);
	void approve(int subCategoriesId,boolean isApproved);
	void approve(SubCategoriesForm formData);
	void approve(SubCategoriesForm subCategory, boolean isApproved);
	
	List<SubCategoriesForm> getListForForm();
	List<SubCategoriesForm> getListForFormForCat(int catId);
}
